﻿using Microsoft.Extensions.Logging;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Face8280WebSocketServer.DB.Log
{
    public class CustomEFLoggerFactory : ILoggerFactory
    {
        private ILogger<FaceDBContext> _logger;

        public CustomEFLoggerFactory(ILogger<FaceDBContext> logger)
        {
            _logger = logger;
        }

        public void AddProvider(ILoggerProvider provider)
        {

        }

        public ILogger CreateLogger(string categoryName)
        {
            return new CustomEFLogger(categoryName, _logger);
        }

        public void Dispose()
        {

        }
    }
}
